from django import forms
from .models import Collect

class CollectForm(forms.ModelForm):
    """收藏表单"""
    class Meta:
        model = Collect
        fields = ['notes']
        widgets = {
            'notes': forms.Textarea(attrs={
                'rows': 3,
                'placeholder': '添加收藏备注（可选）...',
                'class': 'form-control'
            }),
        }
        labels = {
            'notes': '收藏备注',
        }

class CollectNotesForm(forms.ModelForm):
    """更新收藏备注表单"""
    class Meta:
        model = Collect
        fields = ['notes']
        widgets = {
            'notes': forms.Textarea(attrs={
                'rows': 3,
                'class': 'form-control'
            }),
        }
        labels = {
            'notes': '修改备注',
        }